/**
 * @file 权限管理
 * @author lishaohai
 */
import request from '@/utils/request';

// 系统管理 => 接口管理
export function getApiList(params) {
    return request({method: 'get', url: '/api/orders/', params});
}
export function postApiList(data) {
    return request({method: 'post', url: '/api/orders/', data});
}
// 批量添加列表
export function postApisList(data) {
    return request({method: 'post', url: '/api/orders/list/', data});
}
// 批量更新列表
export function putApisList(data) {
    return request({method: 'put', url: '/api/orders/', data});
}
// 单个更新列表
export function putApiList(id, data) {
    return request({method: 'put', url: `/api/orders/${id}/`, data});
}
export function getApiById(id) {
    return request({method: 'get', url: `/api/orders/${id}/`});
}
export function deleteApiById(id) {
    return request({method: 'delete', url: `/api/orders/${id}/`});
}
export function deleteApiByIds(ids) {
    return request({method: 'delete', url: '/api/orders/', data: ids});
}
